package control.action;

import model.VNovelContent;
import business.dao.NovelContentDAO;
import business.dao.NovelDAO;
import business.impl.NovelContentDAOImpl;
import business.impl.NovelDAOImpl;

public class GetChapNovelAction extends BaseAction {
	private int chapterid;
	
	public void setChapterid(int chapterid) {
		this.chapterid = chapterid;
	}

	/**
	 * @return
	 */
	public String execute() {
		NovelContentDAO ncdao = new NovelContentDAOImpl();
		
		VNovelContent novelContent = ncdao.getContnentByName(chapterid);
		request.setAttribute("novelContent", novelContent);
		return SUCCESS;
	}
}